/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.google.code.jmarias.common.action;

import com.google.code.jmarias.common.AbstractUser;
import com.google.code.jmarias.common.Card;
import com.google.code.jmarias.common.NewTable;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author josef
 */
@XmlRootElement
public class DropTalonAction extends GameAction {

    private Card[] talon;

    public DropTalonAction(Card[] talon) {
        this.talon = talon;
    }

    public DropTalonAction() {
    }

    @Override
    public void updateTable(NewTable table, AbstractUser user) {
        table.setTalon(talon);
    }

    @Override
    public String toString() {
        return "Odhazuju talon";
    }
    
    public Card[] getTalon() {
        return talon;
    }

    public void setTalon(Card[] talon) {
        this.talon = talon;
    }
}
